package com.ruoyi.classai.domain.dto.px;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.classai.domain.PxTrainingCourse;
import com.ruoyi.classai.domain.PxTrainingCourseFile;
import com.ruoyi.classai.domain.PxTrainingCourseQuestionnaire;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 培训课程添加对象
 * @author lcj
 * @date 2025-06-18
 */
@Data
@Schema(description="培训课程添加对象")
public class PxTrainingCourseDto implements Serializable{

    private static final long serialVersionUID = 1L;


    /** id */
    @Schema(description  = "id")
    private String id;

    /** 模块标题 */
    @Excel(name = "模块标题")
    @Schema(description  = "模块标题")
    @NotBlank(message = "模块标题不能为空")
    private String moduleTitle;

    /** 培训主题 */
    @Excel(name = "培训主题")
    @Schema(description  = "培训主题")
    @NotBlank(message = "培训主题不能为空")
    private String trainingTheme;

    /** 培训形式 */
    @Excel(name = "培训形式")
    @Schema(description  = "培训形式")
    @NotNull(message = "培训形式不能为空")
    private Integer trainingFormat;

    /** 培训专家 */
    @Excel(name = "培训专家")
    @Schema(description  = "培训专家")
    private String trainingExpert;

    /** 培训学时 */
    @Excel(name = "培训学时")
    @Schema(description  = "培训学时")
    private Integer classHour;

    /** 培训开始时间 */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Excel(name = "培训开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @Schema(description  = "培训开始时间")
    @NotNull(message = "培训开始时间不能为空")
    private Date startTime;

    /** 培训结束时间(上午/下午/晚上) */
    @Excel(name = "培训结束时间(上午/下午/晚上)")
    @Schema(description  = "培训结束时间(上午/下午/晚上)")
    private String endTime;


    /** 培训地址 */
    @Excel(name = "培训地址")
    @Schema(description  = "培训地址")
    private String trainingAddress;

    /** 培训课程简介 */
    @Excel(name = "培训课程简介")
    @Schema(description  = "培训课程简介")
    private String trainingCourseNotes;

    /** 是否有作业0:否1是 */
    @Excel(name = "是否有作业0:否1是")
    @Schema(description  = "是否有作业0:否1是")
    private Integer isWork;

    /** 作业标题 */
    @Excel(name = "作业标题")
    @Schema(description  = "作业标题")
    private String workTitle;

    /** 作业要求 */
    @Excel(name = "作业要求")
    @Schema(description  = "作业要求")
    private String workRequire;

    /** 作业截止时间 */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Excel(name = "作业截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    @Schema(description  = "作业截止时间")
    private Date workEndTime;

    /** 是否有问卷调查0:否1是 */
    @Excel(name = "是否有问卷调查0:否1是")
    @Schema(description  = "是否有问卷调查0:否1是")
    private Integer isQuestionnaire;

    /** 培训ID */
    @Excel(name = "培训ID")
    @Schema(description  = "培训ID")
    @NotBlank(message = "培训ID不能为空")
    private String trainingId;

    /** 职称 */
    @Excel(name = "职称")
    @Schema(description  = "职称")
    private String title;

    /** 单位 */
    @Excel(name = "单位")
    @Schema(description  = "单位")
    private String unit;

    /**
     * 线上课程
     */
    @Schema(description  = "线上课程")
    private List<PxTrainingCourseFile> trainingCourseFileList;

    /**
     * 问卷调查
     */
    @Schema(description  = "问卷调查")
    private List<PxTrainingCourseQuestionnaire> trainingCourseQuestionnaireList;
}
